package com.job.blossom.work0712;

/**
 * @author ZJM
 * @version 1.0
 * @since 2022-07-12 19:09:24
 */
public class AttackPowerFactory {
//攻击力选择
    public static Tiger getAttackPower(int attack){
        if(attack<1000 && attack>0){
            return new LittleTiger();
        }
        if(attack<10000 ){
            return new AdultTiger();
        }
        if(attack>=10000){
            return new SuperTiger();
        }
        return null;
    }
}
